<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>

<body>
<div class="has-feedback">
    <form id="search-form" action="${param.pageUrl}" method="post">
        <input type="text" placeholder="搜索" name="name" value="${name}" id="search-form-name">
        <span class="glyphicon glyphicon-search" onclick="list()"></span>
    </form>
</div>
</body>
<script>
    function list(){
        //使用JQ提交表单
        //$("#search-form").submit();
        //使用JS提交表单
        document.getElementById("search-form").submit();
    }
</script>
</html>
